package demo01.aop;

import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Before;
import org.aspectj.lang.annotation.Pointcut;
import org.springframework.stereotype.Component;

/**
 * Created by ztt on 2017/9/24.
 */
@Aspect
@Component
public class Aop02 {

        @Pointcut("execution(public * demo01.bean..*.*(int))")
        public void recordLog(){}

        @Before("execution ( ** demo01.bean.Performance.perform(int))")
        public void silenceCellPhones(){
            System.out.println("silencing cell phones -->int");
        }
}
